<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://www.gzjp.cn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String updateUrl = basePath + "adminLoginServlet/updatePassword";
%>
<html>
<head>
<base href="<%=basePath%>">
<title>HR项目实战</title>
<link type="text/css" rel="stylesheet" href="css/mldn.css">
<link type="text/css" rel="stylesheet" href="css/login.css">
<link type="text/css" rel="stylesheet" href="css/style.css">
<script type="text/javascript" src="js/mldn.js"></script>
<script type="text/javascript" src="js/login.js"></script>
<script type="text/javascript" src="js/jquery-1.6.min.js"></script>
</head>
<body>
	<div id="mainDiv">
		<form action="<%=updateUrl%>" method="post" onsubmit="return validateUpdate()">
			<table border="1" cellpadding="5" cellspacing="0" bgcolor="F2F2F2">
				<tr onmouseover="changeColor(this,'white')" onmouseout="changeColor(this,'F2F2F2')">
					<td colspan="3">修改登录密码</td>
				</tr>
				<tr onmouseover="changeColor(this,'white')" onmouseout="changeColor(this,'F2F2F2')">
					<td>原始密码：</td>
					<td><input type="password" class="init" name="oldpass" id="oldpass" onblur="validateOldpass()"></td>
					<td><span id="oldpassMsg"></span></td>
				</tr>
				<tr onmouseover="changeColor(this,'white')" onmouseout="changeColor(this,'F2F2F2')">
					<td>新的密码：</td>
					<td><input type="password" class="init" name="newpass" id="newpass" onblur="validateNewpass()"></td>
					<td><span id="newpassMsg"></span></td>
				</tr>
				<tr onmouseover="changeColor(this,'white')" onmouseout="changeColor(this,'F2F2F2')">
					<td>重复密码：</td>
					<td><input type="password" class="init" name="conf" id="conf" onblur="validateConf()"></td>
					<td><span id="confMsg"></span></td>
				</tr>
				<tr onmouseover="changeColor(this,'white')" onmouseout="changeColor(this,'F2F2F2')">
					<td colspan="3">
						<input type="submit" value="更新">
						<input type="reset" value="重置">
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
